<template>
  <div class="shophead">
    <div class="footer">
      <div class="footerLeft">
        <van-checkbox
          checked-color="#de3745"
        ></van-checkbox>
        <span>全选</span>
      </div>
      <div class="footerRight">
        <span>合计:</span>
        <span class="color">￥59.90</span>
        <button @click="order">去支付</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    order() {
      this.$router.push("/order");
    },
  },
};
</script>

<style lang="less" scoped>
.shophead {
  overflow: hidden;
  position: relative;
  height: 100vh;
  bottom: 250px;
  .footer {
    width: 100%;
    background-color: #fff;
    display: flex;
    font-size: 30px;
    padding: 25px;
    .footerLeft {
      margin-left: 5px;
      flex: 1;
      text-align: left;
      .van-checkbox {
        margin-right: 15px;
        float: left;
        height: 40px;
      }
      span {
        float: left;
      }
    }
    .footerRight {
      .color {
        color: red;
      }
      button {
        border: none;
        border-radius: 50px;
        width: 120px;
        background-color: red;
        color: #fff;
      }
    }
  }
}
</style>